package com.gee.util;

import javax.microedition.lcdui.*;
import java.io.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * 
 * @author CoCo
 */
/*
 * 定义可能用到的各种静态常量
 */
public class StaticConst {

	/**
	 * 定义游戏屏幕宽高
	 */
	public static final int SC_WIDTH = 240;
	public static final int SC_HEIGHT = 320;
	/**
	 * 定义常量字体
	 */
	/*
	 * 小 中 大 等宽 均衡 系统 粗体 字
	 */
	public static final Font S_M_B = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_BOLD, Font.SIZE_SMALL);
	public static final Font M_M_B = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_BOLD, Font.SIZE_MEDIUM);
	public static final Font L_M_B = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_BOLD, Font.SIZE_LARGE);
	public static final Font S_P_B = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_BOLD, Font.SIZE_SMALL);
	public static final Font M_P_B = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_BOLD, Font.SIZE_MEDIUM);
	public static final Font L_P_B = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_BOLD, Font.SIZE_LARGE);
	public static final Font S_S_B = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_BOLD, Font.SIZE_SMALL);
	public static final Font M_S_B = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_BOLD, Font.SIZE_MEDIUM);
	public static final Font L_S_B = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_BOLD, Font.SIZE_LARGE);
	/*
	 * 小 中 大 等宽 均衡 系统 斜体 字
	 */
	public static final Font S_M_I = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_ITALIC, Font.SIZE_SMALL);
	public static final Font M_M_I = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_ITALIC, Font.SIZE_MEDIUM);
	public static final Font L_M_I = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_ITALIC, Font.SIZE_LARGE);
	public static final Font S_P_I = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_ITALIC, Font.SIZE_SMALL);
	public static final Font M_P_I = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_ITALIC, Font.SIZE_MEDIUM);
	public static final Font L_P_I = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_ITALIC, Font.SIZE_LARGE);
	public static final Font S_S_I = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_ITALIC, Font.SIZE_SMALL);
	public static final Font M_S_I = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_ITALIC, Font.SIZE_MEDIUM);
	public static final Font L_S_I = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_ITALIC, Font.SIZE_LARGE);
	/*
	 * 小 中 大 等宽 均衡 系统 普通体 字
	 */
	public static final Font S_M_P = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_PLAIN, Font.SIZE_SMALL);
	public static final Font M_M_P = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
	public static final Font L_M_P = Font.getFont(Font.FACE_MONOSPACE,
			Font.STYLE_PLAIN, Font.SIZE_LARGE);
	public static final Font S_P_P = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_PLAIN, Font.SIZE_SMALL);
	public static final Font M_P_P = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
	public static final Font L_P_P = Font.getFont(Font.FACE_PROPORTIONAL,
			Font.STYLE_PLAIN, Font.SIZE_LARGE);
	public static final Font S_S_P = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_PLAIN, Font.SIZE_SMALL);
	public static final Font M_S_P = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
	public static final Font L_S_P = Font.getFont(Font.FACE_SYSTEM,
			Font.STYLE_PLAIN, Font.SIZE_LARGE);
	/**
	 * 绘制的锚点
	 */
	public final static byte cencen = 3; // * The brief of anchor. HCENTER |7
	public final static byte lefcen = 6; // * The brief of anchor. HCENTER |
	public final static byte rigcen = 10; // * The brief of anchor. HCENTER |
	public final static byte cenbot = 33;// * The brief of anchor. BOTTOM |
	public final static byte lefbot = 36; // * The brief of anchor. BOTTOM |
	public final static byte rigbot = 40; // * The brief of anchor. BOTTOM |
	public final static byte centop = 17;// * The brief of anchor. TOP |
	public final static byte leftop = 20;// * The brief of anchor. TOP | LEFT
	public final static byte rigtop = 24;// * The brief of anchor. TOP |
	/**
	 * 定义常用按键
	 */
	public final static int KEY_UP = -1;
	public final static int KEY_DOWN = -2;
	public final static int KEY_LEFE = -3;
	public final static int KEY_RIGHT = -4;
	public final static int KEY_OK = -5;
	public final static int KEY_SOFT_LEFT = -6;
	public final static int KEY_SOFT_RIGHT = -7;
	public final static int KEY_NUM_0 = 48;
	public final static int KEY_NUM_1 = 49;
	public final static int KEY_NUM_2 = 50;
	public final static int KEY_NUM_3 = 51;
	public final static int KEY_NUM_4 = 52;
	public final static int KEY_NUM_5 = 53;
	public final static int KEY_NUM_6 = 54;
	public final static int KEY_NUM_7 = 55;
	public final static int KEY_NUM_8 = 56;
	public final static int KEY_NUM_9 = 57;
	public final static int KEY_STAR = 42;
	public final static int KEY_POUND = 35;
	/**
	 * 第一文字排版
	 */
	public final static int NUMBER_LEFT = 1;
	public final static int NUMBER_RIGHT = 2;
	public final static int NUMBER_UP = 3;
	public final static int NUMBER_DOWN = 4;
}
